package d_decrator.b_design_pattern;

/**
 * Created by wug on 2016/6/22 0022.
 */
public class AllInOne extends Component {
    Component component;

    public AllInOne(Component component) {
        this.component = component;
    }

    @Override
    public String showDesc() {
        return component.showDesc();
    }

    @Override
    public int showPrice() {
        return component.showPrice() - 1000;
    }
}
